/* 公共样式文件 */

/* 页面容器样式 */
.page-container {
  padding: 0.625rem 1.25rem;
  background-color: #f8f9fa;
  height: calc(100vh - 6rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 查询表单样式 */
.search-form {
  background-color: #fff;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(219, 223, 233, .6);
  box-shadow: 0 2px 0.25rem rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* 表单内联样式 */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.form-inline .el-form-item {
  margin-bottom: 0;
  margin-right: 1rem;
}

:deep(.form-inline .el-form-item__label) {
  width: 7.5rem;
  text-align: right;
  font-size: 0.8125rem;
  color: #606266;
}

/* 输入框和选择框统一样式 */
.form-inline .el-input,
.form-inline .el-select {
  width: 12.5rem;
  font-size: 0.8125rem;
}

:deep(.el-input--small) {
  font-size: 0.8125rem;
}

:deep(.el-select--small .el-select__wrapper) {
  font-size: 0.8125rem;
}

/* 表格容器样式 */
.table-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.table-wrapper {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  position: relative;
}

/* 表格样式 */
.el-table {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* 确保表头固定样式 */
:deep(.el-table__header-wrapper) {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f7fa;
}

:deep(.el-table__body-wrapper) {
  overflow-y: auto;
}

/* 分页容器样式 */
.pagination-container {
  padding: 0.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid #ebeef5;
}

.pagination-container .el-pagination {
  font-size: 0.8125rem;
}

/* 分页按钮禁用状态样式 */
:deep(.el-pagination.is-disabled .btn-next) {
  color: #c0c4cc;
  cursor: not-allowed;
}

/* 按钮间距 */
.el-button + .el-button {
  margin-left: 0.3125rem;
}

/* 弹窗样式 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

/* 所有弹窗标题统一样式 */
:deep(.el-dialog__title) {
  font-size: 0.9375rem;
  font-weight: bold;
  line-height: 1.125rem;
}

/* 弹窗内所有文本展示值统一样式 */
:deep(.el-dialog .el-form-item span) {
  font-size: 0.8125rem;
}

/* 弹窗内所有输入框统一样式 */
:deep(.el-dialog .el-input__inner) {
  font-size: 0.8125rem;
}

:deep(.el-dialog .el-textarea__inner) {
  font-size: 0.8125rem;
}

/* 错误消息样式 */
.error-message {
  color: #f56c6c;
  font-size: 0.75rem;
  margin-top: 0.3125rem;
  line-height: 1.2;
}

/* 确认内容样式 */
.confirm-content {
  padding: 0.625rem 0;
  text-align: center;
}

.confirm-content p {
  margin: 0;
  font-size: 0.875rem;
  color: #303133;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confirm-content p .el-icon {
  color: #e6a23c;
  font-size: 1.25rem;
}

/* 弹窗标题带图标样式 */
.dialog-header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dialog-header-with-icon .el-icon {
  color: #5D87FF;
  font-size: 1.25rem;
}

/* 快捷操作下拉菜单样式 */
:deep(.el-dropdown-menu__item) {
  font-size: 0.8125rem !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container {
    padding: 0.625rem;
  }
  
  .search-form {
    padding: 0.9375rem;
  }
  
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-inline .el-form-item {
    margin-right: 0;
    margin-bottom: 0.625rem;
  }
  
  .form-inline .el-input,
  .form-inline .el-select {
    width: 100%;
  }
} 